import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

import java.io.IOException;

/**
 * @author 王瑞
 * @description: TODO
 * @date 2020/4/16  15:01
 */
public class ProviderMain {


    public static void main(String[] args) throws IOException {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(ProviderConfig.class);
        context.start();
        System.in.read();
    }



    @EnableDubbo(scanBasePackages = "com.wr.api.impl")
    @Configuration
    @PropertySource("classpath:dubbo-providor.properties")
     static class ProviderConfig{}
}
